<%@ page language="java" import="java.util.*,com.csd.helper.IConstant" pageEncoding="utf-8"%>
<%@page import="com.csd.vo.UserVO"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<% 
UserVO userVO = (UserVO)session.getAttribute(IConstant.userVO);
if(userVO==null || !userVO.getType().equals(IConstant.teacherRole))
{
	response.sendRedirect(path+"/common/error.jsp?info=Sorry, you ware not login, yet!");
	return;
}
String user_name = userVO.getName();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<%=path%>/teacher/css/teacher_right.css" />
<title>教师欢迎页面</title>
</head>

<body>
	<!--Main层，最外层-->
	<div class="main">
    	<h1>欢迎回来！</h1>
        <hr />
        <br />
        <h3>&nbsp;&nbsp;您好<span><%=user_name%></span>, 我们的老师！</h3>
    </div>

</body>
</html>
